// import Vue from 'vue'
// import App from './App.vue'
// import router from './router'
// import './plugins/element.js'
// import http from './http'

// Vue.config.productionTip = false
// Vue.prototype.$http = http

// new Vue({
//   router,
//   render: h => h(App)
// }).$mount('#app')

/* eslint-disable */
import Vue from 'vue'
import App from './App.vue'
import './plugins/element.js'
import router from './router'
import './style.css'
import http from './http'
import VueScrollLock from 'vue-scroll-lock'

Vue.use(VueScrollLock)
    // 导入富文本编辑器
import { VueEditor } from "vue2-editor";
Vue.use(VueEditor)
Vue.config.productionTip = false
Vue.prototype.$http = http
Vue.mixin({
    computed: {
        upLoadUrl() {
            return this.$http.defaults.baseURL + '/upload'
        }
    },
    methods: {
        getAuthHeaders() {
            return {
                Authorization: `Bearer ${localStorage.token || ''}`
            }
        }

    }
})
new Vue({
    router,
    render: h => h(App)
}).$mount('#app')